﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=1">
    <meta name="format-detection" content="telephone=no">
    <meta charset="UTF-8">
    <title>2.4mvvm</title>
    <link rel="stylesheet" href="../css/bootstrap.css"/>
    <script src="../js/jquery-2.2.0.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
</head>
<body>
<h1>2.4mvvm</h1>

<div id="app">

</div>
<script src="../js/vue-2.5.16.js"></script>
<script src="../node_modules/axios/dist/axios.js"></script>
<script src="../node_modules/lodash/lodash.js"></script>

<script>
    /*
    传统写法是mvp模式(model(数据层),view(展示层),presenter(业务逻辑控制层))
    vue的方式是mvvm  model view viewmodel(vue就是这个层，会监听数据改变，事件更改)  用户只需要关注model层和view层开发
     */
    var app = new Vue({
        el:'#app',
        data:{
        },
        methods:{
        }
    });
</script>

</body>
</html>
